   <%@page import="com.wanmait.hotelManage.vo.Userinfo"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
String path=request.getContextPath();
%>
<script type="text/javascript" src="<%=path %>/static/js/jquery-3.5.1.min.js"></script>
<html lang="en">
<head>
<meta charset="utf-8">
<title>万码酒店</title>
<!-- Stylesheets -->
<%-- <link href="<%=path %>/static/css/bootstrap.css" rel="stylesheet"> --%>
<link href="<%=path %>/static/css/revolution-slider.css" rel="stylesheet">
<link href="<%=path %>/static/css/style.css" rel="stylesheet">
<%-- <link href="<%=path %>/static/css/user.css" rel="stylesheet"> --%>
<!--Favicon-->
<link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
<link rel="icon" href="static/images/favicon.ico" type="image/x-icon">

<!-- Responsive -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link href="<%=path %>/static/css/responsive.css" rel="stylesheet">

</head>


<body>
<div class="page-wrapper">

    <!-- .preloader -->
    <!-- <div class="preloader"></div> 
    <!-- /.preloader -->
    
    <!-- 顶栏 与滑动中的丁栏 -->
    <header class="main-header">
        <div class="container">
        	<div class="row">
                <div class="col-md-12 col-sm-12 col-xs-12">
                	<div class="logo">
                		<figure><a href="<%=path %>/indexServlet?action=hot"><img src="static/images/home/logo.png" alt=""></a></figure>
                	</div>
                    <div class="menu-bar">
                        <nav class="main-menu">
                            <div class="navbar-header">
                                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                                    <span class="icon-bar"></span>
                                    <span class="icon-bar"></span>
                                    <span class="icon-bar"></span>
                                </button>
                            </div>
                            <div class="navbar-collapse collapse clearfix">
                                <ul class="navigation clearfix">
                                    <li class="current"><a href="<%=path %>/indexServlet?action=hot">主页</a>
                                    </li>
                                    
                                    <li class="dropdown"><a class="allroomtype" href="#">房间</a>
                                    	<%-- <ul>
                                    		<li><a href="<%=request.getContextPath()%>/roomListServlet?action=roomDetail">房间网格</a></li>
                                    		<li><a href="<%=request.getContextPath() %>/roomListServlet?action=allroomtype">所有房间</a></li>
                                            
                                    	</ul> --%>
                                    </li>
                                  
                                    <li ><a href="<%=path%>/CommentServlet?action=list">点评</a>
                                        
                                    </li>
                                    <li class="dropdown"><a href="<%=path%>/NewsListServlet?action=init">新闻</a>
                                        <%-- <ul>
                                            <li><a href="<%=path%>/NewsListServlet?action=init">最新消息</a></li>
                                            <!-- <li><a href="news-detail.html">新闻详细</a></li> -->
                                        </ul> --%>
                                        
                                    </li> 
                                </ul>
                            </div>
                        </nav>
                    </div>
                   
                   <!--  <div class="info-box">
                    	<a href="#">现在预订</a>
                    </div>   -->    
                    <a href="<%=request.getContextPath() %>/FrontDesk/center/profile.jsp" style="margin-left: 150px;width: 48px;height: 47px;">
                    <%
                    	Userinfo userinfo=(Userinfo)session.getAttribute("userinfo");
                    	if(userinfo!=null){
                 	%>
                    <img id="touxiang" width="70px" height="70px" style="border-radius: 35px;" src="<%=path%>/static/images/touxiang/<%=userinfo.getPic()%>">
                  	<a>欢迎回来,尊敬的<%=userinfo.getVip().getTitle() %></a> &nbsp &nbsp
                    <a href="<%=path%>/UserinfoServlet?action=drop">退出</a>
                  	
                    <%
                    	}else{
                    %>
                    <a href="<%=path%>/login.jsp">登录</a>|<a href="<%=path%>/register.jsp">注册</a>
                    <% 
                    	}
                    %>
                    </a>
                </div>
            </div>
        </div>
        <script>
        	
        </script>
        <!--Sticky Header-->
        <div class="sticky-header">
            <div class="container clearfix">
                <div class="row">
                    <div class="col-md-12 col-sm-12 col-xs-12">
	                	<div class="logo">
	                		<figure><a href="<%=path %>/indexServlet?action=hot"><img src="static/images/home/logo.png" alt=""></a></figure>
	                	</div>
	                    <div class="menu-bar">
	                        <nav class="main-menu">
	                            <div class="navbar-header">
	                                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
	                                    <span class="icon-bar"></span>
	                                    <span class="icon-bar"></span>
	                                    <span class="icon-bar"></span>
	                                </button>
	                            </div>
	                            <div class="navbar-collapse collapse clearfix">
	                                <ul class="navigation clearfix">
	                                    <li class="current"><a href="<%=path %>/indexServlet?action=hot">主页</a>
	                                    </li>
	                                    
	                                    <li class="dropdown"><a class="allroomtype" href="#">房间</a>
	                                    	<%-- <ul>
	                                    		<li><a href="<%=request.getContextPath()%>/roomListServlet?action=roomDetail">房间网格</a></li>
	                                    		<li><a href="<%=request.getContextPath() %>/roomListServlet?action=allroomtype">所有房间</a></li>
	                                           
	                                    	</ul> --%>
	                                    </li>
	                                
	                                    <li ><a href="<%=path%>/CommentServlet?action=list">点评</a>
	                                        <!-- <ul>
	                                            <li><a href="testimonials.html">联系</a></li>
	                                            <li><a href="faq.html">常见问题页</a></li>
	                                            <li><a href="error.html">错误页</a></li>
	                                        </ul> -->
	                                    </li>
	                                    <li class="dropdown"><a href="<%=path%>/NewsListServlet?action=init">新闻</a>
	                                       <%--  <ul>
	                                            <li><a href="<%=path%>/NewsListServlet?action=init">最新新闻</a></li>
	                                            <!-- <li><a href="news-detail.html">新闻详情</a></li> -->
	                                        </ul> --%>
	                                        
	                                    </li>
	                                </ul>
	                            </div>
	                        </nav>
	                    </div>
	               
	                   <!--  <div class="info-box">
	                    	<a href="#">现在预订</a>
	                    </div> -->
	                   <a href="<%=request.getContextPath() %>/FrontDesk/center/profile.jsp" style="margin-left: 150px;width: 48px;height: 47px;">
                    <%
                    	
                    	if(userinfo!=null){
                 	%>
                    <img id="touxiang" width="70px" height="70px" style="border-radius: 35px;" src="<%=path%>/static/images/touxiang/<%=userinfo.getPic()%>">
                    <%
                    	}else{
                    %>
                    <a href="<%=path%>/login.jsp">登录</a>|<a href="<%=path%>/register.jsp">注册</a>
                    <% 
                    	}
                    %>
                    </a>
	                </div>
                </div>
            </div>
        </div>
    </header>
    <!--End Sticky Header-->
    <script type="text/javascript">
    $(function(){
    	$(".allroomtype").click(function() {	
			window.location.href="<%=request.getContextPath() %>/roomListServlet?action=allroomtype";
		})
    })
    </script>

      